home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / 7edit / source / sveditutils.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.5 KB  |  97 lines

  1. /*
  2.     File:        SVEditUtils.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Original version by Jon Lansdell and Nigel Humphreys.
  7.                             3.1 updates by Greg Sutton.    
  8.  
  9.     Copyright:    Copyright ©1995-1999 by Apple Computer, Inc., All Rights Reserved.
  10.  
  11.                 You may incorporate this Apple sample source code into your program(s) without
  12.                 restriction. This Apple sample source code has been provided "AS IS" and the
  13.                 responsibility for its operation is yours. You are not permitted to redistribute
  14.                 this Apple sample source code as "Apple sample source code" after having made
  15.                 changes. If you're going to re-distribute the source, we require that you make
  16.                 it clear in the source that the code was descended from Apple sample source
  17.                 code, but that you've made changes.
  18.  
  19.     Change History (most recent first):
  20.                 7/19/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  21.                 
  22.  
  23. */
  24.  
  25. #ifndef __SVEDITUTILS__
  26. #define __SVEDITUTILS__
  27.  
  28. #include <Types.h>
  29. #include <Quickdraw.h>
  30. #include <Packages.h>
  31. #include <GestaltEqu.h>
  32. #include <Editions.h>
  33. #include <Printing.h>
  34.  
  35. #ifndef __SVEDITGLOBALS__
  36. #include "SVEditGlobals.h"
  37. #endif
  38.  
  39. pascal Boolean GestaltAvailable();
  40.  
  41. pascal Boolean CheckEnvironment();
  42.  
  43. pascal void ShowError(Str255 theError,
  44.                       long   theErrorCode);
  45.  
  46. pascal Boolean FeatureIsImplemented(OSType theFeature,
  47.                                     short  theTestBit);
  48.  
  49. pascal void GetTempFileName(DPtr   aDoc,
  50.                             Str255 newString);
  51.  
  52. pascal Boolean Ours(WindowPtr aWindow);
  53.  
  54. pascal void SetShortMenus();
  55.  
  56. pascal void SetLongMenus();
  57.  
  58. pascal void SetStyleMenu(DPtr theDoc);
  59.  
  60. pascal void SetFontMenu(DPtr theDoc);
  61.  
  62. pascal void SetEditMenu(DPtr theDoc);
  63.  
  64. pascal void AdornDefaultButton(DialogPtr theDialog, short theItem);
  65.  
  66. pascal void DrawDefaultOutline(DialogPtr theDialog, short theItem);
  67.  
  68. pascal void RetrieveText(DialogPtr aDialog,
  69.                                                short     anItem,
  70.                                                Str255    aString);
  71.  
  72. pascal void SetText( DialogPtr aDialog,
  73.                                          short     itemNo,
  74.                                          Str255    theString);
  75.  
  76. pascal void GetRectOfDialogItem(DialogPtr theDialog, short theItem, Rect *theRect);
  77.  
  78. /*changed for 7.0 and Outline Fonts*/
  79.  
  80. pascal void SetSizeMenu(DPtr theDoc);
  81.  
  82. pascal long LesserOf(long A, long B);
  83.  
  84. pascal long GreaterOf(long A, long B);
  85.         
  86. pascal Boolean DoPageSetup(DPtr theDoc);
  87.  
  88. pascal Boolean CtrlKeyPressed(const EventRecord *theEvent);
  89.  
  90. pascal Boolean OptionKeyPressed(const EventRecord *theEvent);
  91.  
  92. pascal short         NumToolboxTraps(void);
  93. pascal TrapType GetTrapType(short theTrap);
  94. pascal Boolean    TrapAvailable(short theTrap);
  95.  
  96. #endif
  97.